Skip to content

Fold 2026-08-03 defect sweep and macOS 26.6 event ritual into guides and notes - #26

Merged
hbmartin merged 2 commits into
mainfrom
freshness-2026-08-03
Aug 4, 2026
Merged

hbmartin merged 2 commits into
mainfrom
freshness-2026-08-03

Conversation

@hbmartin

@hbmartin hbmartin commented Aug 4, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #25 — until that merges, this PR also shows its commit (a81971d); the work here is only 5e5da32.

Defect-state changes (each verified against live GitHub before editing)

  • mlx#3883 (TF32 warn-once) and mlx#3924 (tile_matmad_nax static_assert) both closed unmerged; #3924 with the maintainer declining the guard. Re-verified before writing: the else-less chain is still at steel/gemm/nax.h:847,865 at HEAD (2026-08-03), so Parts 9/11/12 hedges now state the closure and that the hazard stands with no fix incoming. Explicitly dated snapshot tables were left intact per house style.
  • mlx-lm#1566 closed by its author with no fix merged — generate_step / speculative_generate_step defaults re-checked unchanged at HEAD the same day. Part 12 hedges updated; the advice itself stands.
  • mlx-swift-lm#358 closed unmerged in favor of open PR #453 (issue #312 still open). Parts 12/13 "fix in flight" references transferred; §11.2 status tables re-dated.
  • coreai-torch#7: Part 8 sighting genuinely still said "Open PR" (stale since 2026-07-29) despite the ref sitting on the runbook's known-false-positive list — fixed, and the runbook now instructs per-sighting triage of STATE-CHANGED rows, citing this case.
  • Part 17 §7.6: live-docs re-check 2026-08-03 — resolved(in:) still current (parameter now some Sequence<Transcript.Entry>, was ArraySlice), resolve(in:) deprecated. The docs-vs-SDK contradiction stands; both dates recorded, checklist §4 watch updated.

macOS 26.6 (25G72) event ritual, run 2026-08-03

  • Interface diff clean for every framework; coreai-build help at its documented 27.0 fingerprint.
  • Probes: 46/34/0 host, 39/2/0 sim, all five host PROBE-RESULT values unchanged on 26.6 (speech Status ordering held across 26.5 → 26.6).
  • Snippet verification re-run: results byte-identical (1,359 fences).
  • Baselines reconciled across the runbook, checklist, and probes/README.md (which disagreed at 43/34, 39/34, and 36/2); trigger headers now log the event and watch for Xcode 27 beta 5.

Mechanics

All guide edits are line-count-preserving, so the classification TSVs and results.tsv keys stayed valid — only regeneration was needed: build-indexes.sh (1,780/1,418 counts unchanged), build-skills.sh, mdlinks.py, and the full script test suite (148/148 pass). One TSV blurb updated (part-09 #3883 row) so SILENT-FAILURES.md no longer implies the warn-once PR is alive.

🤖 Generated with Claude Code


Summary by cubic

Folded the 2026-08-03 defect sweep and the macOS 26.6 update into the guides and notes. Cleaned stale issue statuses, clarified a cache API call, and regenerated indexes/skills; interfaces, snippets, and probes remain stable on 26.6.

  • Bug Fixes
    • mlx#3883 (TF32 warn-once) and mlx#3924 (tile_matmad_nax assert) marked closed unmerged; Parts 9/11/12 now state the closures and that the hazards remain at HEAD.
    • mlx-lm#1566 closed with no fix; defaults re-verified; guidance unchanged.
    • mlx-swift-lm#358 closed in favor of open #453; #312 still open. References updated in Parts 12/13.
    • coreai-torch#7 “Open PR” sighting corrected; the runbook now calls for per-sighting triage of STATE-CHANGED rows.
    • Cache docs now spell the instance call AIModelCache.default.deleteEntries(for:); this removed a duplicate symbol from API-INDEX (now 1205).
    • Part 17 re-verified: docs show resolved(in:) (parameter now some Sequence<Transcript.Entry>), resolve(in:) deprecated; the docs-vs-SDK contradiction is still flagged.

Written for commit 5e5da32. Summary will update on new commits.

Review in cubic

Summary by CodeRabbit

  • Documentation
    • Refreshed API indexes, generated metadata, timestamps, and verification snapshots for August 3, 2026.
    • Updated issue and pull-request status references across AI, MLX, migration, caching, numerics, and conversion guides.
    • Clarified cache-clearing examples and documented current API inconsistencies and warning behavior.
    • Updated probe baselines and confirmed no behavioral drift in host verification results.

hbmartin and others added 2 commits August 3, 2026 06:48
- Spell the clearCache(at:) internals with the actual instance call
  AIModelCache.default.deleteEntries(for:) in part-07 ref 02; the bare
  spelling had minted a near-duplicate API-INDEX symbol (1206 -> 1205)
- Fix the stale "four undocumented ones" sentence in the fm CLI harvest
  note after serve was reclassified as already verified
- Note whitespace normalization in the two archival harvest notes that
  claim verbatim code blocks
- Regenerate API-INDEX and skills with SOURCE_DATE_EPOCH pinned to
  2026-08-02; verify-skills, mdlinks, and all 148 tests pass

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…and notes

Defect-state changes, each verified against live GitHub before editing:
- mlx#3883 (TF32 warn-once) and mlx#3924 (tile_matmad_nax static_assert)
  closed unmerged; the missing-else hazard re-verified still at HEAD
  (steel/gemm/nax.h:847,865, 2026-08-03). Parts 9, 11, 12 hedges updated.
- mlx-lm#1566 closed by its author with no fix merged; generate_step /
  speculative_generate_step defaults re-checked unchanged at HEAD. Part 12.
- mlx-swift-lm#358 closed unmerged in favor of open PR #453; issue #312
  still open. Parts 12, 13.
- coreai-torch#7: part-08 sighting genuinely said "Open PR" (stale since
  2026-07-29) despite the ref sitting on the runbook false-positive list —
  fixed, and the runbook now says to triage STATE-CHANGED per sighting.
- part-17 §7.6: live-docs re-check 2026-08-03 — resolved(in:) still current,
  parameter now some Sequence<Transcript.Entry>, resolve(in:) deprecated;
  the docs-vs-SDK contradiction stands.

macOS 26.6 (25G72) event ritual, run 2026-08-03: interface diff clean for
every framework, coreai-build help at its documented 27.0 fingerprint,
snippet verification byte-identical, probes 46/34/0 host and 39/2/0 sim
with all five host PROBE-RESULT values unchanged on 26.6. Baselines and
trigger notes updated in the runbook, checklist, notes/README, probes/README.

All guide edits are line-count-preserving; indexes and skills regenerated
(1,780/1,418 counts unchanged); 148 script tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Updated documentation for the 2026-08-03 SDK and MLX status snapshot. Corrected AIModelCache.default.deleteEntries(for:) references and API index coverage. Revised upstream issue, pull-request, TF32, NAX, and cache-fix statuses. Recorded macOS 26.6 verification results, refreshed probe baselines, clarified API discrepancies, and updated generated skill metadata and hashes.

Possibly related PRs

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the defect sweep and macOS 26.6 validation updates applied across the guides and notes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch freshness-2026-08-03

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 8

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md`:
- Around line 1750-1753: Update the warning claim in the upstream PR `#3883` note
to state that no runtime warning was present in the inspected upstream state as
of August 3, 2026, rather than implying no runtime warning will ever arrive;
preserve the surrounding MLX silent-fallback context.

In `@guides/part-12-mlx-python/README.md`:
- Around line 31-32: Update all three passages to count only correctness PRs
`#3912`, `#3922`, and `#3924`, changing “four” to “three” and excluding performance PR
`#3918`. In guides/part-12-mlx-python/README.md lines 31-32,
guides/part-12-mlx-python/references/01-core-fundamentals.md lines 122-123, and
guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md
lines 101-104, state only that these PRs are absent from MLX checkout 973e27f;
remove any claim about release absence.

In `@guides/part-12-mlx-python/references/03-quantization.md`:
- Around line 104-105: Update the NAX count from two to three in
guides/part-12-mlx-python/references/03-quantization.md lines 104-105,
guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md
lines 92-93, guides/part-12-mlx-python/references/05-serving-and-distributed.md
lines 1220-1221, and
guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md lines
1319-1320; additionally, in 05-serving-and-distributed.md replace “landed” with
wording that reflects the PRs remained open or closed unmerged.

In `@guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md`:
- Line 992: Update the `#420` verification date from 2026-08-03 to the supporting
note’s 2026-07-31 in
guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md:992-992,
then regenerate the corresponding skill copy at
skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md:992-992
so both files match.

In `@notes/NEXT-BETA-CHECKLIST.md`:
- Around line 98-99: Update the host-version wording in the 2026-08-03 baseline
entry so it no longer identifies the host as macOS 26.5; use macOS 26.6
consistently, or explicitly qualify 26.5 as the SDK/runtime version rather than
the host OS.

In `@probes/README.md`:
- Around line 55-59: Update the HOST-26 row in the run table to reference macOS
26.6, keeping its run instructions and baseline consistent with the verified
host version documented in the 2026-08-03 entry.

In
`@skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md`:
- Around line 1966-1973: Update the checklist section discussing Transcript
image attachment resolution so the deprecation warning for resolve(in:) is
explicitly conditional on the SDK build: captured 27.0 SDKs expose resolve(in:)
without deprecation and lack resolved(in:), while only SDKs declaring the
deprecation should show the warning. Preserve the existing distinction between
the two method signatures and do not suggest a mechanical rename.

In
`@skills/apple-mlx/references/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md`:
- Line 2882: Update the PR status note near the reference-wrapper statement to
explicitly identify PR `#453` as the active/open fix and PR `#358` as the closed,
unmerged superseded PR. Ensure the wording cannot imply that PR `#453` was closed
unmerged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 8478546b-e72d-4652-b9b9-e19268f38d3f

📥 Commits

Reviewing files that changed from the base of the PR and between e01ff16 and 5e5da32.

⛔ Files ignored due to path filters (1)
  • notes/synthesis/callout-classifications/part-09.tsv is excluded by !**/*.tsv
📒 Files selected for processing (69)
  • guides/API-INDEX.md
  • guides/SILENT-FAILURES.md
  • guides/part-07-coreai-swift-runtime/references/02-specialization-caching-and-aot.md
  • guides/part-08-coreai-pytorch-conversion/references/01-conversion-and-the-io-contract.md
  • guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md
  • guides/part-11-metal-and-tensorops/references/02-cooperative-tensors-and-flash-attention.md
  • guides/part-12-mlx-python/README.md
  • guides/part-12-mlx-python/references/01-core-fundamentals.md
  • guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md
  • guides/part-12-mlx-python/references/03-quantization.md
  • guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md
  • guides/part-12-mlx-python/references/05-serving-and-distributed.md
  • guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md
  • guides/part-13-mlx-swift/references/01-mlx-swift-lm-in-an-app.md
  • guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md
  • guides/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md
  • notes/FRESHNESS-RUNBOOK.md
  • notes/NEXT-BETA-CHECKLIST.md
  • notes/README.md
  • notes/web/2026-08-02-harvest/adjacent-sessions-297-375-310-256-258.md
  • notes/web/2026-08-02-harvest/fm-cli-real-machine-evidence.md
  • notes/web/2026-08-02-harvest/wwdc2026-253-music-understanding.md
  • probes/README.md
  • skills/README.md
  • skills/apple-ai-evaluations/references/API-INDEX.md
  • skills/apple-ai-evaluations/references/SECTION-MAPS.md
  • skills/apple-ai-evaluations/references/SILENT-FAILURES.md
  • skills/apple-ai-migration/references/API-INDEX.md
  • skills/apple-ai-migration/references/SECTION-MAPS.md
  • skills/apple-ai-migration/references/SILENT-FAILURES.md
  • skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md
  • skills/apple-ai-shipping/references/API-INDEX.md
  • skills/apple-ai-shipping/references/SECTION-MAPS.md
  • skills/apple-ai-shipping/references/SILENT-FAILURES.md
  • skills/apple-app-intents/references/API-INDEX.md
  • skills/apple-app-intents/references/SECTION-MAPS.md
  • skills/apple-app-intents/references/SILENT-FAILURES.md
  • skills/apple-core-ai/references/API-INDEX.md
  • skills/apple-core-ai/references/SECTION-MAPS.md
  • skills/apple-core-ai/references/SILENT-FAILURES.md
  • skills/apple-core-ai/references/part-07-coreai-swift-runtime/references/02-specialization-caching-and-aot.md
  • skills/apple-core-ai/references/part-08-coreai-pytorch-conversion/references/01-conversion-and-the-io-contract.md
  • skills/apple-core-ai/references/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md
  • skills/apple-foundation-models/references/API-INDEX.md
  • skills/apple-foundation-models/references/SECTION-MAPS.md
  • skills/apple-foundation-models/references/SILENT-FAILURES.md
  • skills/apple-metal-tensorops/references/API-INDEX.md
  • skills/apple-metal-tensorops/references/SECTION-MAPS.md
  • skills/apple-metal-tensorops/references/SILENT-FAILURES.md
  • skills/apple-metal-tensorops/references/part-11-metal-and-tensorops/references/02-cooperative-tensors-and-flash-attention.md
  • skills/apple-mlx/references/API-INDEX.md
  • skills/apple-mlx/references/SECTION-MAPS.md
  • skills/apple-mlx/references/SILENT-FAILURES.md
  • skills/apple-mlx/references/part-12-mlx-python/README.md
  • skills/apple-mlx/references/part-12-mlx-python/references/01-core-fundamentals.md
  • skills/apple-mlx/references/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md
  • skills/apple-mlx/references/part-12-mlx-python/references/03-quantization.md
  • skills/apple-mlx/references/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md
  • skills/apple-mlx/references/part-12-mlx-python/references/05-serving-and-distributed.md
  • skills/apple-mlx/references/part-12-mlx-python/references/06-finetuning-and-porting-models.md
  • skills/apple-mlx/references/part-13-mlx-swift/references/01-mlx-swift-lm-in-an-app.md
  • skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md
  • skills/apple-on-device-ai/references/API-INDEX.md
  • skills/apple-on-device-ai/references/SECTION-MAPS.md
  • skills/apple-on-device-ai/references/SILENT-FAILURES.md
  • skills/apple-speech/references/API-INDEX.md
  • skills/apple-speech/references/SECTION-MAPS.md
  • skills/apple-speech/references/SILENT-FAILURES.md
  • skills/skills-manifest.json

Comment on lines +1750 to +1753
> ⚠️ Upstream PR #3883 ("Warn once when float32 ops silently run at TF32 precision") existed
> because users are being surprised by this — it was **closed unmerged 2026-08-03**, so no runtime
> warning is coming. **This is the MLX analogue of the Core AI silent-fallback problem**: a
> precision reduction that produces correct-looking numbers and announces itself nowhere.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

sed -n '1738,1760p' guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md
printf '\nRepository references to PR `#3883`:\n'
rg -n -C 3 '3883|no runtime warning|closed unmerged|August 3, 2026' .

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 50411


🏁 Script executed:

printf '%s\n' 'Tracked candidate files:'
git ls-files | rg '(^|/)(guides|skills)/.*part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack\.md$'

printf '\nExact target lines by tracked file:\n'
while IFS= read -r f; do
  printf '\n--- %s ---\n' "$f"
  rg -n -C 2 'Upstream PR `#3883`|no runtime|warn-once PR \(`#3883`\)' "$f" || true
done < <(git ls-files | rg '(^|/)(guides|skills)/.*part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack\.md$')

printf '\nRepository metadata near the dated re-check:\n'
sed -n '14,26p' notes/README.md
sed -n '760,776p' guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 2935


🏁 Script executed:

for f in \
  guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md \
  skills/apple-core-ai/references/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md
do
  printf '\n--- %s ---\n' "$f"
  sed -n '1746,1755p' "$f"
done

printf '\nUpstream PR `#3883`:\n'
curl -fsSL https://api.github.com/repos/ml-explore/mlx/pulls/3883 |
  jq '{state, merged, merged_at, closed_at, updated_at, title, html_url}'

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 1909


Scope the warning claim to the August 3, 2026 upstream snapshot.

Replace “so no runtime warning is coming” with “so no runtime warning was present in the inspected upstream state as of August 3, 2026.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@guides/part-09-coreai-compression-numerics/references/03-numeric-formats-across-the-stack.md`
around lines 1750 - 1753, Update the warning claim in the upstream PR `#3883` note
to state that no runtime warning was present in the inspected upstream state as
of August 3, 2026, rather than implying no runtime warning will ever arrive;
preserve the surrounding MLX silent-fallback context.

Comment on lines +31 to +32
correctness fix PRs opened in the 72 hours before 2026-07-27** (PRs #3912, #3922 still open and #3924 closed
unmerged 2026-08-02, per a 2026-08-03 `gh` re-check — so no release or checkout contains them), one a *missing

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -u

printf '%s\n' '--- repository state ---'
git rev-parse HEAD
git status --short

printf '%s\n' '--- requested passages ---'
sed -n '20,40p' guides/part-12-mlx-python/README.md
sed -n '112,132p' guides/part-12-mlx-python/references/01-core-fundamentals.md
sed -n '92,112p' guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md

printf '%s\n' '--- all references to candidate PRs and date/count claims ---'
rg -n -C 2 '`#3912`|`#3922`|`#3924`|correctness PR|three days|72 hours|2026-07-27|2026-08-02|2026-08-03' .

printf '%s\n' '--- GitHub PR metadata ---'
for n in 3912 3922 3924; do
  gh api "repos/ml-explore/mlx/pulls/$n" --jq '"#\(.number)\tstate=\(.state)\tmerged=\(.merged)\tclosed_at=\(.closed_at)\tmerged_at=\(.merged_at)\ttitle=\(.title)"' || true
done

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 50412


🏁 Script executed:

#!/bin/bash
set -u
log=/tmp/coderabbit-shell-logs/shell-output-uDfvAY

printf '%s\n' '--- state and requested passages from prior run ---'
sed -n '1,180p' "$log"

printf '%s\n' '--- exact NAX references in the relevant guide and research note ---'
rg -n -C 3 --no-heading '`#3912`|`#3922`|`#3924`|correctness PR|72 hours|three days|2026-07-27|2026-08-02|2026-08-03' \
  guides/part-12-mlx-python notes/repos/issues-mlx-stack.md

printf '%s\n' '--- PR metadata, including repository and merge commits ---'
for n in 3912 3922 3924; do
  gh api "repos/ml-explore/mlx/pulls/$n" \
    --jq '"#\(.number)\tstate=\(.state)\tmerged=\(.merged)\tclosed_at=\(.closed_at)\tmerged_at=\(.merged_at)\tmerge_commit=\(.merge_commit_sha)\ttitle=\(.title)"' || true
done

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 50411


🏁 Script executed:

#!/bin/bash
set -u

printf '%s\n' '--- NAX source note ---'
rg -n -C 12 'NAX|3912|3922|3924|correctness|three days|four' notes/repos/mlx-tensorops-kernels.md

printf '%s\n' '--- PRs opened in the stated window ---'
gh api --paginate \
  'search/issues?q=repo%3Aml-explore%2Fmlx+is%3Apr+created%3A2026-07-24..2026-07-27&per_page=100' \
  --jq '.items[] | "#\(.number)\t\(.created_at)\t\(.state)\t\(.title)"' 2>&1 || true

printf '%s\n' '--- exact status for the three cited PRs ---'
for n in 3912 3922 3924; do
  gh api "repos/ml-explore/mlx/pulls/$n" \
    --jq "#\(.number)\tcreated=\(.created_at)\tstate=\(.state)\tmerged=\(.merged)\tclosed_at=\(.closed_at)\tmerged_at=\(.merged_at)\ttitle=\(.title)" 2>&1 || true
done

printf '%s\n' '--- checkout references ---'
git ls-files | rg '(^|/)(README|01-core-fundamentals|02-numerics-hardware-gating-and-custom-kernels)\.md$|mlx-tensorops-kernels'
rg -n -C 2 '973e27f|no release|no runtime|no release or checkout|none is in this checkout' \
  guides/part-12-mlx-python notes/repos/mlx-tensorops-kernels.md

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 50411


🏁 Script executed:

#!/bin/bash
set -u

printf '%s\n' '--- candidate PR metadata and descriptions ---'
for n in 3912 3913 3918 3919 3920 3922 3924; do
  printf '\nPR #%s\n' "$n"
  gh api "repos/ml-explore/mlx/pulls/$n" \
    --jq '{number,created_at,state,merged,closed_at,merged_at,merge_commit_sha,title,labels:[.labels[].name],body}' \
    2>&1 || true
done

printf '%s\n' '--- changed paths for likely candidates ---'
for n in 3918 3922 3924; do
  printf '\nPR #%s files\n' "$n"
  gh api --paginate "repos/ml-explore/mlx/pulls/$n/files?per_page=100" \
    --jq '.[] | .filename' 2>&1 || true
done

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 23781


Change the NAX count to three and narrow the absence claim.

The cited correctness PRs are #3912, #3922, and #3924. Do not count #3918; it is a performance change. Replace “four” with “three” in all three passages. State only that these PRs are absent from MLX checkout 973e27f; release absence is not established.

📍 Affects 3 files
  • guides/part-12-mlx-python/README.md#L31-L32 (this comment)
  • guides/part-12-mlx-python/references/01-core-fundamentals.md#L122-L123
  • guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md#L101-L104
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@guides/part-12-mlx-python/README.md` around lines 31 - 32, Update all three
passages to count only correctness PRs `#3912`, `#3922`, and `#3924`, changing “four”
to “three” and excluding performance PR `#3918`. In
guides/part-12-mlx-python/README.md lines 31-32,
guides/part-12-mlx-python/references/01-core-fundamentals.md lines 122-123, and
guides/part-12-mlx-python/references/02-numerics-hardware-gating-and-custom-kernels.md
lines 101-104, state only that these PRs are absent from MLX checkout 973e27f;
remove any claim about release absence.

Comment on lines +104 to +105
NAX opened in the **72 hours before 2026-07-27** — PRs **#3912**, **#3922** and **#3924**; on a
2026-08-03 `gh` re-check the first two were still open and #3924 was closed unmerged 2026-08-02

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu
for f in \
  guides/part-12-mlx-python/references/03-quantization.md \
  guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md \
  guides/part-12-mlx-python/references/05-serving-and-distributed.md \
  guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md
do
  echo "=== $f ==="
  rg -n -C 4 '3912|3922|3924|Four|four|correctness.fix|correctness fix|NAX' "$f" || true
done

echo "=== all repository references to the PRs and NAX ==="
rg -n -i -C 2 '3912|3922|3924|NAX' guides skills 2>/dev/null | head -n 400 || true

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 50412


🌐 Web query:

MLX GitHub pull requests 3912 3922 3924 NAX

💡 Result:

Regarding the MLX framework, the requested GitHub pull requests refer to the following: - PR #3912: This pull request is an open issue titled Fix fp quantized matmul corruption when the quantized dim is not a multiple of 32 [1]. It addresses corruption in quantized matrix multiplication kernels specifically for shapes where the quantized dimension is 16 mod 32 [1]. - PR #3922: This pull request is referenced in discussions within PR #3912 [1]. It is described as providing the foundation for sorted gather_qmm boundary and correctness, and is associated with M5/NAX testing [1]. - PR #3924: This number is not a pull request for the ml-explore/mlx repository [1]. It is referenced in other repositories, such as being a ZenML pull request for provisioning execution status [2] and a pull request in the xorbitsai/inference repository for built-in support for gpt-oss [3][4][5][6]. NAX refers to a specific set of optimized kernels within MLX, often discussed in the context of JIT (Just-In-Time) compilation and hardware-specific optimizations (e.g., M5/NAX testing) [7][1]. Previously, PR #3426 was used to gate NAX JIT sources by macOS SDK version to ensure compatibility across different build environments [7].

Citations:


🏁 Script executed:

#!/bin/bash
set -eu
for f in \
  guides/part-12-mlx-python/references/03-quantization.md \
  guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md \
  guides/part-12-mlx-python/references/05-serving-and-distributed.md \
  guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md
do
  echo "=== $f ==="
  rg -n -C 4 '3912|3922|3924|Four|four|correctness.fix|correctness fix|NAX' "$f" || true
done

echo "=== all repository references ==="
rg -n -i -C 2 '3912|3922|3924|NAX' guides skills 2>/dev/null | head -n 400 || true

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 50412


🏁 Script executed:

#!/bin/bash
set -u

echo "=== local PR ledger around the NAX entries ==="
sed -n '1370,1445p' notes/repos/mlx-tensorops-kernels.md 2>/dev/null || true
sed -n '1975,2020p' notes/repos/mlx-tensorops-kernels.md 2>/dev/null || true

echo "=== upstream PR metadata ==="
for n in 3912 3922 3924; do
  echo "--- PR #$n ---"
  gh api "repos/ml-explore/mlx/pulls/$n" \
    --jq '{number,title,state,merged_at,closed_at,created_at,updated_at,html_url,body}' 2>&1 || true
done

echo "=== upstream PRs created from 2026-07-24 through 2026-07-27 ==="
gh api --paginate \
  -H 'Accept: application/vnd.github+json' \
  'repos/ml-explore/mlx/pulls?state=all&sort=created&direction=desc&per_page=100' \
  --jq '.[] | select(.created_at >= "2026-07-24T00:00:00Z" and .created_at < "2026-07-28T00:00:00Z") | {number,title,state,merged_at,closed_at,created_at,html_url}' 2>&1 || true

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 28357


🌐 Web query:

site:github.com/ml-explore/mlx/pull "NAX" "2026-07-25"

💡 Result:

In the context of the MLX machine learning framework on macOS, NAX refers to the neural acceleration architecture utilized by Apple's M5 silicon [1][2]. On July 25, 2026, two significant pull requests were submitted to the ml-explore/mlx GitHub repository regarding Metal kernel optimizations: 1. [Metal] Rows-per-expert-aware gather_qmm_rhs tile geometry (#3918): This update improves performance for Mixture-of-Experts (MoE) prefill operations by dynamically selecting tile geometry based on the number of rows per expert [3]. For large batches, it shifts to a 32x64 tile geometry, which provides substantial speedups (up to 19-22% in some configurations) [3]. 2. [Metal] Fused causal-mask + softmax for the SDPA ops fallback (#3919): This PR optimizes Scaled Dot Product Attention (SDPA) by fusing the causal mask application directly into the softmax kernel [4]. This eliminates unnecessary intermediate memory allocations for the mask and scores, resulting in a 45-61% reduction in kernel time for the mask/softmax stage during long-context prefill [4]. These updates continue the ongoing development of specialized kernels within MLX to support high-performance computing on newer Apple hardware, including the NAX-enabled M5 chips [5][3][4].

Citations:


🏁 Script executed:

#!/bin/bash
set -u

for n in 3918 3921 3922 3924; do
  echo "--- PR #$n ---"
  gh api "repos/ml-explore/mlx/pulls/$n" \
    --jq '{number,title,state,created_at,closed_at,merged_at,body,labels:[.labels[].name]}' 2>&1 || true
done

echo "=== NAX search results with titles and dates ==="
gh api --paginate \
  -H 'Accept: application/vnd.github+json' \
  'repos/ml-explore/mlx/pulls?state=all&sort=created&direction=desc&per_page=100' \
  --jq '.[] | select(.created_at >= "2026-07-24T00:00:00Z" and .created_at < "2026-07-27T00:00:00Z") | select((.title + " " + (.body // "")) | test("NAX|nax|quantized|gather_qmm|tile_matmad"; "i")) | {number,title,created_at,state,merged_at,closed_at,html_url}' 2>&1 || true

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 11990


🌐 Web query:

"ml-explore/mlx" "#3918" correctness NAX

💡 Result:

MLX pull request #3918, titled [Metal] Rows-per-expert-aware gather_qmm_rhs tile geometry, is a performance-focused PR aimed at optimizing Mixture-of-Experts (MoE) inference [1]. Regarding correctness, the PR explicitly addresses this by confirming that the per-element K-accumulation order is independent of the tile geometry [1]. The authors verified this empirically and reported that the implementation is bit-exact across all configurations and rows-per-expert values tested, and token-identical on end-to-end model evaluations [1].

Citations:


🏁 Script executed:

#!/bin/bash
set -u

for n in 3918 3921 3922 3924; do
  echo "--- PR #$n ---"
  gh api "repos/ml-explore/mlx/pulls/$n" \
    --jq '{number,title,state,created_at,closed_at,merged_at,body,labels:[.labels[].name]}' 2>&1 || true
done

echo "=== NAX-related PRs opened from 2026-07-24 through 2026-07-26 ==="
gh api --paginate \
  -H 'Accept: application/vnd.github+json' \
  'repos/ml-explore/mlx/pulls?state=all&sort=created&direction=desc&per_page=100' \
  --jq '.[] | select(.created_at >= "2026-07-24T00:00:00Z" and .created_at < "2026-07-27T00:00:00Z") | select((.title + " " + (.body // "")) | test("NAX|nax|quantized|gather_qmm|tile_matmad"; "i")) | {number,title,created_at,state,merged_at,closed_at,html_url}' 2>&1 || true

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 12007


🏁 Script executed:

#!/bin/bash
set -eu
for spec in \
  "guides/part-12-mlx-python/references/03-quantization.md:101:108" \
  "guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md:89:95" \
  "guides/part-12-mlx-python/references/05-serving-and-distributed.md:86:93" \
  "guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md:1315:1325"
do
  file=${spec%%:*}
  range=${spec#*:}
  start=${range%:*}
  end=${range##*:}
  echo "=== $file:$start-$end ==="
  sed -n "${start},${end}p" "$file"
done

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 2849


Change the NAX count to three.

#3912, #3922, and #3924 are the three matching correctness-fix PRs; #3918 is performance-only. Update the count in all four files. In 05-serving-and-distributed.md, replace “landed” because the first two remained open and #3924 closed unmerged.

📍 Affects 4 files
  • guides/part-12-mlx-python/references/03-quantization.md#L104-L105 (this comment)
  • guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md#L92-L93
  • guides/part-12-mlx-python/references/05-serving-and-distributed.md#L1220-L1221
  • guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md#L1319-L1320
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@guides/part-12-mlx-python/references/03-quantization.md` around lines 104 -
105, Update the NAX count from two to three in
guides/part-12-mlx-python/references/03-quantization.md lines 104-105,
guides/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md
lines 92-93, guides/part-12-mlx-python/references/05-serving-and-distributed.md
lines 1220-1221, and
guides/part-12-mlx-python/references/06-finetuning-and-porting-models.md lines
1319-1320; additionally, in 05-serving-and-distributed.md replace “landed” with
wording that reflects the PRs remained open or closed unmerged.

`TokenIterator`'s `.logits` path. The one-line fix (`self.state = result.state` in the
`.logits` branch of `prepare`) landed as commit `42f08a8`.
- **`#420` (still OPEN as of 2026-07-31)** — M-RoPE state dropped **across `ChatSession` turns**:
- **`#420` (still OPEN as of 2026-08-03)** — M-RoPE state dropped **across `ChatSession` turns**:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -e
for f in \
  guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md \
  skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md
do
  echo "=== $f ==="
  sed -n '970,1010p' "$f"
done

echo "=== date and `#420` references ==="
rg -n -C 3 '420|2026-07-31|2026-08-03|verification' \
  guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md \
  skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 26992


🏁 Script executed:

#!/bin/bash
set -e
src="guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md"
copy="skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md"

echo "=== current source/copy comparison ==="
cmp -s "$src" "$copy" && echo "files identical" || echo "files differ"
sha256sum "$src" "$copy"

echo "=== working-tree changes for the two files ==="
git status --short -- "$src" "$copy"
git diff --unified=2 -- "$src" "$copy" | sed -n '1,120p'

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 622


Update the stale #420 verification date.

Both files state #420 was open as of 2026-08-03, but the supporting note records the re-check as 2026-07-31. Update the source note and regenerate the skill copy.

📍 Affects 2 files
  • guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md#L992-L992 (this comment)
  • skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md#L992-L992
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md` at
line 992, Update the `#420` verification date from 2026-08-03 to the supporting
note’s 2026-07-31 in
guides/part-13-mlx-swift/references/02-generation-tools-and-caching.md:992-992,
then regenerate the corresponding skill copy at
skills/apple-mlx/references/part-13-mlx-swift/references/02-generation-tools-and-caching.md:992-992
so both files match.

Comment on lines +98 to +99
2026-08-03 healthy baselines are **46 host tests, 34 skipped, 0 failures** and **39 simulator
tests, 2 intentional skips, 0 failures** (both re-verified on the macOS 26.6 host). Probes that need an

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Correct the stale host-version reference.

The event log and this baseline identify the host as macOS 26.6. The next sentence still says OS 27 probes skip on “this 26.5 host.” Update that wording, or state explicitly that 26.5 refers to the SDK/runtime rather than the host OS.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@notes/NEXT-BETA-CHECKLIST.md` around lines 98 - 99, Update the host-version
wording in the 2026-08-03 baseline entry so it no longer identifies the host as
macOS 26.5; use macOS 26.6 consistently, or explicitly qualify 26.5 as the
SDK/runtime version rather than the host OS.

Comment thread probes/README.md
Comment on lines +55 to +59
**Verified 2026-08-03 (host now macOS 26.6 `25G72`):** `swift test` on the host —
46 tests, 34 skipped, 0 failures, exit 0. SIM-27 full run — 39 tests, 2 skipped (PCC
opt-in + the env-gated Instruments workload), 0 failures, `TEST SUCCEEDED`. All five
host-runnable PROBE-RESULT values matched their 26.5 baselines on 26.6 — no behavioral
drift from the 26.5.2 → 26.6 host update.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Update the stale host version in the run table.

Lines 55-59 record verification on macOS 26.6, but the HOST-26 row at Line 24 still says “today's host, macOS 26.5.” This makes the run instructions and the recorded baseline disagree. Update the row to macOS 26.6, or mark it as historical context.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@probes/README.md` around lines 55 - 59, Update the HOST-26 row in the run
table to reference macOS 26.6, keeping its run instructions and baseline
consistent with the verified host version documented in the 2026-08-03 entry.

Comment on lines +1966 to +1973
> ⚠️ **Contradiction with the captured SDK, flagged rather than smoothed — still live 2026-08-03.**
> The 27.0 beta interface (`27A5228h`, read 2026-07-29) contains **only** `func resolve(in
> transcript: Transcript) -> Transcript.ImageAttachment?`, no deprecation attribute, no
> `resolved(in:)` at all (`27.0:2959-2963`) — while a live-docs re-check (2026-08-03) still
> presents `resolved(in:)` as current, its parameter now `some Sequence<Transcript.Entry>` (was
> `ArraySlice<Transcript.Entry>` in the 07-27 harvest), and `resolve(in:)` as deprecated. Either
> `resolved(in:)` landed in a later build than the one captured, or the documentation is ahead of
> the SDK. The two spellings take **different argument types** — so don't mechanically rename;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 4 'ImageReference|resolve\(in:|resolved\(in:|deprecated' \
  notes/sdk-interfaces/FoundationModels-27.0-macos.swiftinterface \
  skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 50411


🏁 Script executed:

python3 - <<'PY'
from pathlib import Path
import re

sdk = Path("notes/sdk-interfaces/FoundationModels-27.0-macos.swiftinterface").read_text()
doc = Path("skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md").read_text()

# Extract only the ImageReference declaration and the migration section.
m = re.search(r'public struct ImageReference\b.*?(?=\n@available|\Z)', sdk, re.S)
print("SDK ImageReference block:")
print(m.group(0) if m else "NOT FOUND")
print("\nMigration section:")
start = doc.index("### 7.6 SUPERSEDED")
end = doc.index("### 7.7", start)
print(doc[start:end])
PY

Repository: hbmartin/Foundation-Models-and-Core-AI-and-MLX-skills

Length of output: 1674


Make the deprecation warning conditional on the SDK build.

The captured 27.0 SDK exposes resolve(in:) without deprecation and does not expose resolved(in:). State that the warning applies only to SDKs that declare the deprecation.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@skills/apple-ai-migration/references/part-17-migration-from-pre-ios-27/references/01-what-changed-checklist.md`
around lines 1966 - 1973, Update the checklist section discussing Transcript
image attachment resolution so the deprecation warning for resolve(in:) is
explicitly conditional on the SDK build: captured 27.0 SDKs expose resolve(in:)
without deprecation and lack resolved(in:), while only SDKs declaring the
deprecation should show the warning. Preserve the existing distinction between
the two method signatures and do not suggest a mechanical rename.

> threshold.**"*
>
> Fix in flight: PR #358. A `KVCacheBox` reference wrapper is the maintainer-endorsed direction.
> Fix in flight: PR #453 (supersedes #358, closed unmerged 2026-08-03); the reference-wrapper approach stands.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

State the status of PR #453 and PR #358 explicitly.

The parenthetical can be read as saying that PR #453 is closed unmerged. notes/README.md Line 23 says PR #358 was superseded by open PR #453. Use explicit wording so the guide does not report the wrong fix state.

Proposed clarification
-Fix in flight: PR `#453` (supersedes `#358`, closed unmerged 2026-08-03); the reference-wrapper approach stands.
+Fix in flight: open PR `#453` supersedes PR `#358`, which was closed unmerged; the reference-wrapper approach stands.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@skills/apple-mlx/references/part-12-mlx-python/references/04-mlx-lm-cli-generation-and-caching.md`
at line 2882, Update the PR status note near the reference-wrapper statement to
explicitly identify PR `#453` as the active/open fix and PR `#358` as the closed,
unmerged superseded PR. Ensure the wording cannot imply that PR `#453` was closed
unmerged.

@hbmartin
hbmartin merged commit 28e38b8 into main Aug 4, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant